PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > socket creation
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
socket creation

Réponse
 
LinkBack Outils de la discussion
Vieux 05/05/2008, 14h24   #1
udayahirwal2@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut socket creation

Can i create 4 sockets on same ip address with different portnumbers.
I am working on windows mobile.
  Réponse avec citation
Vieux 05/05/2008, 15h41   #2
Flash Gordon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

udayahirwal2@gmail.com wrote, On 05/05/08 14:24:
> Can i create 4 sockets on same ip address with different portnumbers.
> I am working on windows mobile.


You will have to ask in one of the Windows groups since this is system
specific.
--
Flash Gordon
  Réponse avec citation
Vieux 05/05/2008, 17h27   #3
Antoninus Twink
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

On 5 May 2008 at 13:24, udayahirwal2@gmail.com wrote:
> Can i create 4 sockets on same ip address with different portnumbers.
> I am working on windows mobile.


There's no reason why you shouldn't be able to. Why don't you post a
snippet of whatever code isn't working?

  Réponse avec citation
Vieux 05/05/2008, 17h41   #4
Keith Thompson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

udayahirwal2@gmail.com writes:
> Can i create 4 sockets on same ip address with different portnumbers.
> I am working on windows mobile.


By now you may have seen a followup from "Antoninus Twink" inviting
you to post your code here. Please don't. You'll get much better
answers if you post to a newsgroup that discusses your operating
system. Sockets are not a feature of the C language.

--
Keith Thompson (The_Other_Keith) <kst-u@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
  Réponse avec citation
Vieux 05/05/2008, 18h09   #5
Tomás Ó hÉilidhe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

On May 5, 2:24pm, udayahirw...@gmail.com wrote:
> 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".
  Réponse avec citation
Vieux 05/05/2008, 18h37   #6
Walter Roberson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

In article <4458e116-2d6d-4554-aa4d-9616d2df4344@l42g2000hsc.googlegroups.com>,
=?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= <toe@lavabit.com> wrote:
>On May 5, 2:24=A0pm, udayahirw...@gmail.com wrote:
>> 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.

--
"They called it golf because all the other four letter words
were taken." -- Walter Hagen
  Réponse avec citation
Vieux 05/05/2008, 21h06   #7
Flash Gordon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

Walter Roberson wrote, On 05/05/08 18:37:
> In article <4458e116-2d6d-4554-aa4d-9616d2df4344@l42g2000hsc.googlegroups.com>,
> =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= <toe@lavabit.com> wrote:
>> On May 5, 2:24=A0pm, udayahirw...@gmail.com wrote:
>>> 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".


The Windows implementation of sockets is not quite the same as the
Berkeley implementation.

> 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.


It does. However, WinCE, sorry, Windows Mobile, is *not* the same as
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.


In particular I don't believe pcap supports the target of interest to
the OP. Asking on a Windows Mobile group would be the OPs best recourse
as has already been mentioned.
--
Flash Gordon
  Réponse avec citation
Vieux 06/05/2008, 00h19   #8
CBFalconer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: socket creation

Tomás Ó hÉilidhe wrote:
> udayahirw...@gmail.com wrote:
>
>> 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".


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.


** Posted from http://www.teranews.com **
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18391 seconds with 16 queries