[ 
https://issues.apache.org/jira/browse/THRIFT-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008846#comment-14008846
 ] 

Matrix Ji commented on THRIFT-2544:
-----------------------------------

I've recompile it with VS2010+Windows Phone SDK 7.1.1 using the target WP7, 
failed. As the namespace System.Net.Sockets is not available when target is 
WP7. And if the target change to WP7.1, it's everything OK. This may be the 
reason why the Official WP client library for thrift is not support the tcp 
socket.

I upload the new project file(Thrift.WP71.csproj) and the c# file for socket 
transport on wp7.1+ (TSilverlightSocket.cs) on this ISSUE. Hope it's useful for 
someone looking for such case (Tcp Socket + Thrift + WP7.1 or above).
Meanwhile, maybe I will change my server's implementation to HTTP protocol. 
It's more flexible.

> Add support for socket transport for c# library when using Windows Phone 
> projects
> ---------------------------------------------------------------------------------
>
>                 Key: THRIFT-2544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C# - Library
>    Affects Versions: 0.9.1, 0.9.2
>         Environment: VS2013 with windows phone 8 development.
>            Reporter: Matrix Ji
>            Assignee: Jens Geyer
>            Priority: Minor
>              Labels: csharp, library, socket
>             Fix For: 0.9.2
>
>         Attachments: TSocket.cs, TSocket.cs.patch
>
>
> As TSocket.cs is not support WP's SDK (using TcpClient). Using tcp socket as 
> the client's transport is not available. 
> I hope using thrift-client with tcp socket and binary protocol in my new WP's 
> application. I've already write a patch, hope this patch can be accepted in 
> new release. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to