Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6713611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:24:03+00:00 2026-05-26T08:24:03+00:00

I wrote c# client-server application, server is sending data using socket.send(byte[]) and receive using

  • 0

I wrote c# client-server application, server is sending data using socket.send(byte[]) and receive using socket.receive(byte[]) now i want to send and receive from android and totally new to android.

i appreciate any kind of help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:24:03+00:00Added an answer on May 26, 2026 at 8:24 am
    //client side        
            Socket sendChannel=new Socket("localhost", 12345);
            OutputStream writer=sendChannel.getOutputStream();
            writer.write(new byte[]{1});
            writer.flush();
    
            InputStream reader=sendChannel.getInputStream();
            byte array[]=new byte[1];
            int i=reader.read(array);
    
    //server side
            ServerSocket s=new ServerSocket(12345);
            Socket receiveChannel = s.accept();
    
            OutputStream writerServer=receiveChannel.getOutputStream();
            writer.write(new byte[]{1});
            writer.flush();
    
            InputStream readerServer=receiveChannel.getInputStream();
            byte array2[]=new byte[1];
            int i2=reader.read(array);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a server-client rmi application and I'm using MacOsX and Ubuntu laptops to
I write a client-server application which will be sending an .xml file from the
I wrote an application server (using python & twisted) and I want to start
I start to write a client - server application using .net (C#) for both
I want to create SOCKET chat(server + clients) with private messaging. When client write
I'm exploring MSMQ services, and I wrote a simple console client-server application that sends
I wrote a socket client in java that 24/7 connected to a socket server
I have an application using sockets.. a client and server program like mySql.. I
I wrote two simple programs server and a client using sockets in C++ (Linux).
I'm using c# to design a client-server application. I'm still a beginner, and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.