Click here to Skip to main content
15,891,629 members

Comments by nika2008 (Top 70 by date)

nika2008 16-Mar-16 7:21am View    
i am searching emulator for terminal printer who is connected with bluetooth and i cant just send data if i cant test it how it shows in paper, i need to design it. and i write my priority questin is for emulator for printer i found a one in playstore android but i cant connect it if u dont have any emulator tested u dont need to comment it. and for where i live in my profile 99% of members dont have correct contry
nika2008 16-Mar-16 5:39am View    
Deleted
i am searching emulator for terminal printer who is connected with bluetooth and i cant just send data if i cant test it how it shows in paper, i need to design it. and i write my priority questin is for emulator for printer i found a one in playstore android but i cant connect it if u dont have any emulator tested u dont need to comment it. and for where i live in my profile 99% of members dont have correct contry
nika2008 16-Sep-15 6:59am View    
thnx +5 :)
nika2008 3-Apr-15 7:53am View    
Deleted
i receive the data in server and works all go c# server and c# client
but java client don`t work i can send data to server but i cant receive the data from server i try many code what i found in google
this code is the last i try
InetAddress host = InetAddress.getLocalHost();
Socket socket = null;
ObjectOutputStream oos = null;
ObjectInputStream ois = null;
for(int i=0; i<1;i++){
socket = new Socket(host.getHostName(), 9876);
//establish socket connection to server
//write to socket using ObjectOutputStream
oos = new ObjectOutputStream(socket.getOutputStream());
System.out.println("Sending request to Socket Server");
if(i==4)oos.writeObject("exit");
else
oos.writeObject("get time");

//read the server response message
ois = new ObjectInputStream(socket.getInputStream());
String message = (String) ois.readObject();

System.out.println("Message: " + message);
ois.close();
oos.close();
}
nika2008 14-Oct-14 4:30am View    
thnx alot :)