I am creating a program that acts as both a server and a client. It
will connect to other instances of itself running on other computers as
well as listen for other connections.
I was wondering if it is possible to have one TWSocket component,
derived from another TWSocket class but essentially h
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
To you both, Darin and Wilfried - I'm aware that you cannot have two
sockets listening on the same address, port and protocol.
Sorry about that - yes, it was a 10048 error. I was wondering how I
could catch that error programatically when my program
Forgive me if the answer is right in front of my face, but currently I'm
stumped:
I have a server listening on a port. When I try and load up a second
instance of my program in the IDE and run it, the second program halts
in place when the server tries to use the bind() Winsock function. A
win
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wilfried Mestdagh wrote:
>>Again, as I've seen in archive here before, what happens if my
>>information gets processed in two batches (packets)? When do I decide
>>OK, enough is enough, and continue on processing? Is TWSocket
>>neccessarily fit for b
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Francois Piette wrote:
> Your ReadFully won't work. You must think event driven. When OnDataAvailable
> is triggered, you must
> read data but you can't loop waiting for so much data to come. If you have
> not received enough data,
> just get therece
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I am experimenting with writing a program that does not rely on LineMode
to send and receive data. The following procedure is attached to a
server component:
TriggerWriteDebug is my own event, which at this time only outputs text
to a TMemo.
Also,