[MonoTouch] Missing Beginnconnect in sockets, Bug?

Rolf Bjarne Kvinge rolf at xamarin.com
Mon Oct 24 05:33:50 EDT 2011


Hi,

The following code compiles just fine for me when I pasted it into a
sample project.

  IPEndPoint ip = new IPEndPoint (IPAddress.Parse ("1.2.3.4"), 2);
  Socket msocket = new Socket (ip.AddressFamily,
SocketType.Stream,ProtocolType.Tcp);
  IAsyncResult ar = msocket.BeginConnect(ip,null,null);

Can you provide a complete project that fails to compile for you?

Rolf


2011/10/22 Andreas Ploetzeneder <info at ploetzeneder-it.com>:
> erm, the code, is exactly the same...
> i got the error iin this line:
>
> IAsyncResult ar = msocket.BeginConnect(ip,null,null);
>
> 2011/10/22 Robert Jordan <robertj at gmx.net>
>>
>> On 22.10.2011 13:48, Andreas Ploetzeneder wrote:
>> > Hi,
>> > could it be that there is missing the beginnconect of sockets:
>> >
>> > I get "system.net.sockets.socket does not contain a definition for
>> > beginconnect" but i see it, as an option to program...
>>
>> Please paste the exact error message. The compiler does not
>> convert type and method names to lower case. Also, you've
>> managed to show us 3 different spellings for BeginConnect.
>> Odds are there is a fourth one in your actual code ;)
>>
>> Robert
>>
>> _______________________________________________
>> MonoTouch mailing list
>> MonoTouch at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
>
> --
>
>
>
>
>
> Mit freundlichem Gruß,
>
> Andreas Plötzeneder
> CEO
> ihr ploetzeneder it-solutions Team
> Mobile Development – Desktopanwendungen – Webanwendungen
> Tel:  +43 720 30 30 24 10
> Fax: +43 720 30 30 24 20
> Email: info at ploetzeneder-it.com
> web:   http://www.ploetzeneder-it.com
>
> Der Inhalt dieser E-Mail samt aller Anhänge ist vertraulich
> und ausschließlich für den Adressaten bestimmt. Wenn Sie nicht der
> vorgesehene Adressat dieser E-Mail oder dessen Vertreter sind, so löschen
> sie diese bitte und informieren Sie den Absender. Jede Form der Verbreitung
> oder Veröffentlichung der E-Mail, sei es in ihrer Gesamtheit oder in Teilen,
> die nicht ihrem Zweck dient, ist unzulässig. Das Internet kann die
> Unversehrtheit dieser Mitteilung nicht garantieren. ploetzeneder
> it-solutions übernimmt daher keine Haftung, falls die E-Mail geändert wurde.
>
>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>


More information about the MonoTouch mailing list