U
udayahirwal2
Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
I am working on windows mobile.
Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
Yes, you certainly can, and you can do it portably so that your code
will compile for Linux, Windows, Solaris, Playstation 3, what have
you.
You'll need to use a cross-platform library for doing so, the big two
being pCap and "Berkeley sockets".
If by pCap you refer to http://sourceforge.net/projects/libpcap/
then:
Operating System : All POSIX (Linux/BSD/UNIX-like OSes)
There is WinPcap, which appears to be a port that extends support
to MS Windows.
But to my mind, "what have you" includes operating systems such
as PalmOS, which is not Posix nor MS Windows, but does include
TCP/IP. Your "what have you" appears to be overly general.
Yes, you certainly can, and you can do it portably so that your code
will compile for Linux, Windows, Solaris, Playstation 3, what have
you.
You'll need to use a cross-platform library for doing so, the big two
being pCap and "Berkeley sockets".
CBFalconer said:Please don't reply to such off-topic queries other than to redirect
the queryier to an appropriate newsgroup. This has nothing to do
with C, and should go to some sort of windows newsgroup.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Flash Gordon said:You will have to ask in one of the Windows groups since this is system
specific.
how about this:
cross-platform socket support is just a few #ifdef's away...
sadly, IME, this is often one of the "best" ways to do inter-OS portability,
namely because, most often, these cross-platform libraries, are rarely if
ever present, and even then, usually only support a few platforms and do
things that would not be so hard to pull off, simply by using ifdef's or or
occasionally swapping out source files...
Linux, Windows, and Solaris:
this should actually be fairly easy with ifdef's, since they use fairly
similar sockets interfaces.
PS3 should be likewise, since AFAIK the thing is just running linux,
likewise for XBox (modified windows core).
WinCE is also, likewise, windows... what ever differences there are in terms
of API calls, are usually noted in the help files (usually, it is
differences along the lines of special flags working, and others having no
effect, ...).
other further systems, depends on what is provided.
IMO, "universal portability" is an ill-advised goal anyways. often I have
seen a lot more damage than good done this route. usual worst case: the code
has to be ported.
worst case, if one depends too heavily on some ill-fated portability
library:
much of the app ends up having to be discarded or rewritten...
my personal advice is too keep as much platform-specific machinery as is
reasonable in small, easily replacable, source files. these can provide a
kind of app-specific portability layer.
in this case, moving between the platforms is usually a matter of using
different source files, and moving to a new one may involve tweaking the
existing ones or adding a few new ones.
this usually works a lot better than it is given credit for...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.