@JRubyMethod public IRubyObject recv(ThreadContext context, IRubyObject _length, IRubyObject _flags) { // TODO: implement flags return recv(context, _length); }
@JRubyMethod public IRubyObject recv(ThreadContext context, IRubyObject _length, IRubyObject _flags) { // TODO: implement flags return recv(context, _length); }
@JRubyMethod public IRubyObject recvfrom(ThreadContext context, IRubyObject length, IRubyObject flags) { return super.recv(context, length, flags); }
@JRubyMethod public IRubyObject recv(ThreadContext context, IRubyObject length) { return recv(context, length, null, null); }
@JRubyMethod public IRubyObject recv(ThreadContext context, IRubyObject length) { return recv(context, length, null, null); }
@JRubyMethod public IRubyObject recvfrom(ThreadContext context, IRubyObject length) { return super.recv(context, length); }
@JRubyMethod public IRubyObject recvfrom(ThreadContext context, IRubyObject length) { return super.recv(context, length); }
@JRubyMethod public IRubyObject recvfrom(ThreadContext context, IRubyObject length, IRubyObject flags) { return super.recv(context, length, flags); }
@Deprecated public IRubyObject recv(IRubyObject[] args) { return recv(getRuntime().getCurrentContext(), args); }
@Deprecated public IRubyObject recv(IRubyObject[] args) { return recv(getRuntime().getCurrentContext(), args); }
@Deprecated public IRubyObject recv(IRubyObject[] args) { return recv(getRuntime().getCurrentContext(), args); }
@Deprecated public IRubyObject recv(IRubyObject[] args) { return recv(getRuntime().getCurrentContext(), args); }
@JRubyMethod(required = 2, optional = 1) // (length) required = 1 handled above public IRubyObject recv(ThreadContext context, IRubyObject[] args) { IRubyObject length; RubyString str; IRubyObject flags; switch (args.length) { case 3: length = args[0]; str = (RubyString) args[1]; flags = args[2].convertToHash(); break; case 2: length = args[0]; flags = TypeConverter.checkHashType(context.runtime, args[1]); str = flags.isNil() ? (RubyString) args[1] : null; break; case 1: length = args[0]; str = null; flags = null; break; default: length = context.nil; str = null; flags = null; } return recv(context, length, str, flags); }
@JRubyMethod(required = 2, optional = 1) // (length) required = 1 handled above public IRubyObject recv(ThreadContext context, IRubyObject[] args) { IRubyObject length; RubyString str; IRubyObject flags; switch (args.length) { case 3: length = args[0]; str = (RubyString) args[1]; flags = args[2].convertToHash(); break; case 2: length = args[0]; flags = TypeConverter.checkHashType(context.runtime, args[1]); str = flags.isNil() ? (RubyString) args[1] : null; break; case 1: length = args[0]; str = null; flags = null; break; default: length = context.nil; str = null; flags = null; } return recv(context, length, str, flags); }