A
AliR \(VC++ MVP\)
Hi Everyone,
I'm an extreme novice when it comes to C#.
I am trying to start a client server application that is going to
communicate with a server over the internet, but I'm not sure what to use
for my communication layer.
There are some things that I'm using a Web Service for. For example logging
in, since it's synchronous operation. But what should I use for
asynchronous operations, should I use Sockets, Web Services, or .Net
Remoting?
The client application should connect to the server, login, then wait for
messages from the server, once it receives a message from the server it has
to send an appropriate response to the server.
If was writing a visual C++ application I would have inherited from a
CAsyncSocket class, implemented a messaging protocol on top the CAsyncSocket
class. When the CAsyncSocket class calls the callback method OnReceive I
would get the data, assemble the received message and pass it to the message
handler class for processing.
Thanks
AliR.
I'm an extreme novice when it comes to C#.
I am trying to start a client server application that is going to
communicate with a server over the internet, but I'm not sure what to use
for my communication layer.
There are some things that I'm using a Web Service for. For example logging
in, since it's synchronous operation. But what should I use for
asynchronous operations, should I use Sockets, Web Services, or .Net
Remoting?
The client application should connect to the server, login, then wait for
messages from the server, once it receives a message from the server it has
to send an appropriate response to the server.
If was writing a visual C++ application I would have inherited from a
CAsyncSocket class, implemented a messaging protocol on top the CAsyncSocket
class. When the CAsyncSocket class calls the callback method OnReceive I
would get the data, assemble the received message and pass it to the message
handler class for processing.
Thanks
AliR.