I'm currently developing a software using winsock to stream compressed video and sound data between two windows computer, in the experimentation, I uses LAN computers for testing so bandwidth won't be an issue, but the software itself will be implemented in various internet connection technology including dialup connection. Rightnow I'm using a non-overlapped, non-blocking socket by deploying the send() - recv() function with WSAAsyncselect to perform the non blocking capablity, I know that this is not the fastest possible solution, so I'm asking for the best method though :).
Note: The API used should be portable between windows 98 and windows NT family (NT4 - Win2K/XP).
Posted on 2003-08-12 13:03:02 by Pinczakko
First of all UDP will increase the speed. In addtion you should use several threads, for example:
1. Captures, compresses video and puts to outgoing buffer
2. Captures, compresses audio and puts to outgoing buffer
3. Checks outgoing buffer and sends it

By the way we are developing the same software. But we are doing it in VB (we have some job reasons for that). Here is link to our thread: http://www.asmcommunity.net/board/showthread.php?threadid=14500
Posted on 2003-08-13 12:42:08 by masnick[CCCP]
He's right - most streaming protocols use udp as the underlying protocol.
I've explained many times exactly why udp has lower latency and overhead.
However I haven't spent much energy explaining why udp is unreliable.
Be aware of the packet loss which is the tradeoff under udp.
Of course, for AV streaming, the odd dropped packet is of little consequence, and it's a highly appropriate carrier protocol for your needs.
Posted on 2003-08-19 00:40:47 by Homer
hi Im new here and need some help please?
I am trying to get more of a grasp in winsock programing for asm.
so far I made it to the bassic part of coding it and make it run to the best I can so far.
but I did not see any tut for capturing packets or more less scaning packets and sending my own in its place.
and so far I read here that to do it faster I could use both TCP and UDP.
now to use both TCP and UDP how would I go about performing that?
would it be sort like this
invoke WSAAsyncSelect,socket,AF_INET,SOCK_STREAM,IPPROTO_TCP ;creates TCP socket
invoke WSAAsyncSelect,socket,AF_INET,SOCK_DGRAM,IPPROTO_UDP ;creates UDP socket

or is there a better method for using both??
Posted on 2003-09-17 14:37:57 by Atlas99
You seem very confused indeed :)
Posted on 2003-09-23 01:24:58 by Homer
1. Read madwizard networking tuts
2. Read iczelion's networking tuts
3. Read other networking tuts

TCP and UDP are 2 different protocols, that work at the same layer. So you use TCP (reliable) or UDP (not reliable). Not both. If you want both you must use 2 different sockets.
Posted on 2003-09-23 04:55:24 by greenant
ok I need a bit of help configuring editbox in asm using hton port and IP
so my program using winsock can connect using port and ip.
so I can type in the port number and ip address in the editbox..
I have not seen much about this in asm.
I like to get a source to go by so I know what to use for registers and opcodes..
and what to invoke for editbox commands..??
Posted on 2003-09-24 19:36:53 by Atlas99
use "Ip Address Control"
Posted on 2003-09-25 01:22:58 by greenant

use "Ip Address Control"


ok ip address control ??
is that in icezlion tut or is there a place were I can see an example of this?
I asked for an example so I can have an idea how to use it..??
Posted on 2003-09-25 10:51:47 by Atlas99